package com.mdhw.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mdhw.admin.entity.AdminUser;
import com.mdhw.admin.vo.AdminUserVo;
import com.mdhw.common.base.PageData;
import com.mdhw.config.R;

/**
* @author Administrator
* @description 针对表【admin_user】的数据库操作Service
* @createDate 2024-12-04 11:17:04
*/
public interface AdminUserService extends IService<AdminUser> {

    public R<AdminUserVo> login(AdminUserVo adminUserVo);

    public AdminUserVo selectAdminUserByToken();

    public Boolean isAdmin(Long userId,Long roleId);

    public R<PageData<AdminUserVo>> selectAdminUserVoPage(Long pageNo, Long pageSize, String loginName, Long roleId, String name);

    public R<String> addAdminUser(AdminUserVo adminUserVo);

    public R<String> updateAdminUser(AdminUserVo adminUserVo);

    public R<String> resetPassword(AdminUserVo adminUserVo);

    public R<String> setStatus(AdminUserVo adminUserVo);

    public R<String> deleteAdminUser(AdminUserVo adminUserVo);
}
